import datetime
from zuiDaUrl import zuiDaUrl
from okUrl import okUrl

#######################数据库信息################################
# 数据库IP地址
server = 'localhost'
# 数据库用户名
user = 'sa'
# 数据库密码
password = '123456'
# 数据库名
dbname = 'myTest'
# 获取当前时间
nowtime = datetime.datetime.now()
# 采集截止时间
yesterday = datetime.datetime.strptime(
    (nowtime+datetime.timedelta(days=-2)).strftime('%Y-%m-%d 00:00:00'), '%Y-%m-%d %H:%M:%S')


zuida = zuiDaUrl(server, user, password, dbname, yesterday, True)
zuida.AutoCollect()
# zuida.startScan()
# zuida.LoadWillDown(3)

ok = okUrl(server, user, password, dbname, yesterday, True)
# ok.startScan()
ok.AutoCollect()
# ok.LoadWillDown(3)
